using System;
using System.Collections.Generic;
using Module.Core.DAO;
using Module.Core.EntitiesInfo;
using Module.Common.Models;

namespace Module.Core.BusinessLogic
{
    public class AdvertisementPositionsBL
	{
		/// <summary>
		/// Saves a record to the Advertisement_Positions table.
		/// </summary>
		public static void Insert(AdvertisementPositionsInfo advertisementPositionsInfo)
		{
			try
			{
			    new AdvertisementPositionsDAO().Insert(advertisementPositionsInfo);
			}
			catch (Exception ex)
			{
				throw;
			}

		}

		/// <summary>
		/// Saves a record to the Advertisement_Positions table.
		/// </summary>
        public static void Update(AdvertisementPositionsInfo advertisementPositionsInfo)
		{
			try
			{
				new AdvertisementPositionsDAO().Update(advertisementPositionsInfo);
			}
			catch (Exception ex)
			{
				throw;
			}

		}

		/// <summary>
		/// Delete a record from the Advertisement_Positions table.
		/// </summary>
        public static void Delete(int positionID)
		{
			try
			{
				new AdvertisementPositionsDAO().Delete(positionID);
			}
			catch (Exception ex)
			{
				throw;
			}

		}

		/// <summary>
		/// Selects a single record from the Advertisement_Positions table.
		/// </summary>
        public static AdvertisementPositionsInfo Select(int positionID)
		{
			try
			{
				return new AdvertisementPositionsDAO().Select(positionID);
			}
			catch (Exception ex)
			{
				throw;
			}

		}

		/// <summary>
		/// Selects all records from the Advertisement_Positions table.
		/// </summary>
        public static CHRTList<AdvertisementPositionsInfo> SelectAll()
		{
			try
			{
				return new AdvertisementPositionsDAO().SelectAll();
			}
			catch (Exception ex)
			{
				throw;
			}

		}

	}
}
